package com.onadake.web.controller;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Controller which is responsible for the home page.
 * 
 * @author radek.hecl
 *
 */
@Controller
@RequestMapping("/")
public class HomeController {

    /**
     * Returns view name of the home page.
     * 
     * @return view name of the home page
     */
    @RequestMapping(method = RequestMethod.GET)
    public String getHomePageView() {
        return "index";
    }
    
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
